home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_10_01 / cmenu.exe / MAKEFILE.DOS < prev    next >
Text File  |  1991-10-07  |  1KB  |  47 lines

  1. #
  2. # Make file for CMENU Menu compiler system (DOS version)
  3. # Developed under Borland C++, but written portably
  4. #
  5.  
  6. CC = bcc                    # command-line compiler name
  7.  
  8.                             # uncomment only ONE of the following 2 lines:
  9. #DEBUG = -v                    # enable embedded Turbo Debugger info
  10. DEBUG =                     # disable debugging
  11.  
  12.                             # Borland-specific stuff (set to null if not)
  13. WILDCARD = wildargs.obj        # links in Borland wildcard expansion
  14. SHUTUP = -w-pia                # supress obnoxious warnings
  15.  
  16. CULIBS = tscurses.lib        # curses libraries
  17.  
  18.                             # uncomment only ONE of the following 2 lines:
  19. #NEEDSTR = -DNEEDSTR        # compile strstr() definition in the program
  20. NEEDSTR =                    # use library version of strstr()
  21.  
  22. #
  23. # From this point on, no changes should be necessary.
  24. #
  25.  
  26. COPTS = -A -DDOS=1 $(DEBUG) $(SHUTUP) $(NEEDSTR)
  27. CFILES = cmenu1.obj cmenu2.obj cmenu3.obj
  28. RFILES = rmenu1.obj rmenu2.obj  rmenu3.obj rmenu4.obj
  29.  
  30. all: cmenu.exe rmenu.exe dmenu.exe
  31.  
  32. .c.obj:                            # For non-Borland MAKE, you may need to
  33.     $(CC) -c $(COPTS) {$< }        # substitute  "$*.c"  for "{$< }"
  34.  
  35. cmenu.exe: $(CFILES)
  36.     $(CC) $(DEBUG) -ecmenu $(CFILES) $(WILDCARD)
  37.  
  38. rmenu.exe: $(RFILES)
  39.     $(CC) $(DEBUG) -ermenu $(RFILES) $(CULIBS)
  40.  
  41. dmenu.exe: dmenu.c cmenu.h
  42.     $(CC) $(COPTS) -edmenu dmenu.c 
  43.  
  44. $(CFILES): ccmenu.h cmenu.h makefile
  45.  
  46. $(RFILES): rcmenu.h cmenu.h makefile
  47.